﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DX.engine.exceptions
{
    public class InvalidSettingTypeException : Exception
    {
        private string _msg;
        public InvalidSettingTypeException(string settingName, object value)
        {
            _msg = string.Format("Invalid setting - Name: {0}, Value: {1}, Type: {2}", settingName, value.ToString(), value.GetType().ToString());
        }

        public override string Message
        {
            get
            {
                return _msg;
            }
        }
    }
}
